/**
* @author maze | guavestudios.com
* @license MIT License see LICENSE.TXT
* @version 0.1
*/
package com.guavestudios.fcon.commands {
	import com.guavestudios.fcon.api.*;
	import com.guavestudios.fcon.plugins.LockManager;
	public class UnlockConsoleCommand implements INamedCommand{
		
		//{ STATIC
	
		//}
		
		//{ MEMBERS
		
		//}
		
		//{ GETTER-SETTER
		
		//}
		public function UnlockConsoleCommand() {
			
			
			init();	
		}
		private function init():void {
			
		}
		//{ PUBLIC FUNCTIONS
		public function execute(args:Array):void
		{
			var c:IControlableConsole=args[0] as IControlableConsole;
			
			if (c.hasPlugin("LockManager"))
			{
				LockManager(c.getPlugin("LockManager")).unlock(args[1] as String);
			}
			
		}
		public function getCommandName():String
		{
			return "unlock";
		}
		//}
		
		//{ OVERRIDEN METHODS
		
		//}
		
		//{ PRIVATE FUNCTIONS
		
		//}

	}
	
}
